#pragma once
#include "afxcmn.h"
#include "afxwin.h"

#include "Project.h"
#include "afxmenubutton.h"
#include "NewProjectDlg.h"


// CScriptEditorDlg dialog

class CScriptEditorDlg : public CDialogEx
{
	DECLARE_DYNAMIC(CScriptEditorDlg)

public:
	CScriptEditorDlg(CWnd* pParent = NULL);   // standard constructor
	virtual ~CScriptEditorDlg();
	CRichEditCtrl m_SrcInput;
	CListCtrl m_ErrorListCtrl;
	afx_msg void OnBnClickedNewfile();

// Dialog Data
	enum { IDD = IDD_SOURCE_DIALOG };

protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	virtual BOOL OnInitDialog();
	CButton m_NewButton;
	CProject *m_Project;
	CString m_CurrentFile;
	CString m_CurrentShip;
	CNewProjectDlg *m_NewProject;

	DECLARE_MESSAGE_MAP()
public:
	afx_msg void OnBnClickedOpenproject();
	afx_msg void OnBnClickedSave();
	CMFCMenuButton m_ShipSelect;
	CMFCMenuButton m_SelectFile;
	afx_msg void OnBnClickedCancel2();
};
